package com.googlecode.continuity.core.server.service;

import java.util.List;

import com.googlecode.continuity.core.client.ContinuityGroup;
import com.googlecode.continuity.core.client.ContinuityUser;

/**
 * GroupService
 *
 * @author Peter Schmitt <aragos@aragos.de>
 */
public interface GroupService {

  public ContinuityGroup getGroupById(int id);

  public ContinuityGroup getGroupByName(String name);

  public List<ContinuityGroup> getGroupsByMember(ContinuityUser user);

  public void addMember(ContinuityUser user);

  public void removeMember(ContinuityUser user);

  public int getGroupCount();
}
